package com.wfh.easychat.model.enums;

import lombok.Getter;

/**
 * @Title: BeautyAccountStatusEnum
 * @Author wangfenghuan
 * @Package com.wfh.easychat.model.enums
 * @Date 2025/9/26 14:49
 * @description: 靓号状态枚举
 */
@Getter
public enum BeautyAccountStatusEnum {

    /**
     * 靓号状态枚举
     */
    USED(1, "used"),
    UNUSED(0, "unused");

    private Integer type;

    private String value;

    BeautyAccountStatusEnum(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public static BeautyAccountStatusEnum getByValue(Integer type) {
        for (BeautyAccountStatusEnum statusEnum : BeautyAccountStatusEnum.values()) {
            if (statusEnum.getType().equals(type)) {
                return statusEnum;
            }
        }
        return null;
    }
}
